package lab02.test07;



public class Person {
    //属性：人名、年龄、身份证号
    String name;
    int age;
    String id;

    public Person(){}//无参数

    public Person(String name,int age,String id){//有参数
        this.name=name;
        this.age=age;
        this.id=id;
    }

    String getName(){
        return name;
    }
    void setName(String name) {
        this.name = name;
    }
    int getAge(){
        return age;
    }
    void setAge(int age) {
        this.age = age;
    }
    String getId(){
        return id;
    }
    void setId(String id){
        this.id=id;
    }
}
